projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1720e8e
)
Don't waste memory
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 1 Feb 2012 05:37:58 +0000
(
00:37
-0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Feb 2012 21:36:51 +0000
(16:36 -0500)
gtk/gtkcolorplane.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcolorplane.c
b/gtk/gtkcolorplane.c
index 644203484401ce05a7af41318dcc884d2c4c934f..ea1fec545e6581f669d651fe2d494b252489d795 100644
(file)
--- a/
gtk/gtkcolorplane.c
+++ b/
gtk/gtkcolorplane.c
@@
-116,7
+116,7
@@
create_sv_surface (GtkColorPlane *plane)
stride = cairo_format_stride_for_width (CAIRO_FORMAT_RGB24, width);
- data = g_malloc (
4 *
height * stride);
+ data = g_malloc (height * stride);
h = plane->priv->h;
sf = 1.0 / (height - 1);